﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.BackgroundJobs;
using Volo.Abp.DependencyInjection;

namespace Himp.TaskScheduling
{
    public class WorkflowJob : AsyncBackgroundJob<WorkflowArgs>, ITransientDependency
    {
        public WorkflowJob()
        {
            
        }

        public override async Task ExecuteAsync(WorkflowArgs args)
        {
            while (true)
            {
                await Task.Delay(500);
                Console.WriteLine(DateTime.Now.ToString("HH:mm:ss:ff"));
            }
        }
    }
}
